<?php $this->display("objects/breadcrumbs") ?>

<h2><?php _e($object['title']) ?></h2>
<p id="objdesc"><strong><?php _e($object['description']) ?></strong></p>

<?php echo $object['content'] ?>

<?php if (count($childs)): ?>
	<table id="forumlist">
	<tr><th></th><th>Forum</th><th class="discussioncount">Discussions</th><th class="lastcomment">Latest Comment</th></tr>
	<?php startStrip(); ?>
	<?php foreach ($childs as $i): ?>
		<?php if (checkPermission($i, "view")): ?>
			<?php $this->display("objects/forum/listing", array("object" => $i)); ?>
		<?php endif; ?>
	<?php endforeach; ?>
	<?php endStrip(); ?>
	</table>
<?php else: ?>
	<p><em>There are no forums here.</em></p>
<?php endif; ?>

<?php if ($isloggedin): ?>
	<p><a href="<?php echo Gene::makeLink($object) ?>/view/smart">Show Enhanced View</a><br /><a href="<?php echo Gene::makeLink($object) ?>/view/preferences">Preferences</a></p>
<?php endif; ?>

<?php if (checkPermission($object, "write")): ?>
	<?php $this->display("objects/forum/create"); ?>
<?php endif; ?>